package com.szqhyxj.youxiangju.biz.core

import android.util.Log

object UserInfoManger {

    lateinit var user: UserInfo

    fun init(userInfo: UserInfo) {
        Log.i("UserInfoManager init", userInfo.toString())
        user = copy(userInfo)
    }

    fun clear() {
        user = copy(UserInfo())
    }

    fun noRealName(): Boolean {
        return user.realNameAuthStatus == 0
    }

    fun isRealName(): Boolean {
        return user.realNameAuthStatus == 1
    }

}